
package vn.aptech.project.control;
import vn.aptech.project.model.dao.*;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;
import vn.aptech.project.model.dto.*;
import java.util.Vector;

public class  orderline_BLL {

private orderline_DAO   obj ;


public orderline_BLL() throws ClassNotFoundException, SQLException, IOException {
     this.obj   = new  orderline_DAO();
}


public Vector selectorderline() throws SQLException {
 return  obj.selectall();
}
public int getQuantityByOrderid(int orderid) throws SQLException, FileNotFoundException, IOException {
 return  obj.getQuantityByOrderid(orderid);
}
public Vector selectByProductid(int productid) throws SQLException
{
   return obj.selectByProductid(productid);
}
public Vector selectByOrderid(int orderid) throws SQLException
{
return obj.selectByOrderid(orderid);
}
public int insertorderline(oderline_DTO object) throws SQLException {
 return  obj.insert(object);
}


public int updateorderline(oderline_DTO object) throws SQLException {
 return  obj.update(object);
}


public int deleteorderline(int Orderid) throws SQLException {
 return  obj.delete(Orderid);
}
}
